package com.stock;

public class Recovery {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		double sum = 10;
		double m = 40-sum;
		double t = 0.1; // target>
		double p = 0.2;
		for (int i = 1;i< 10;i++) {
			double x = 11*sum*p;
			m -= x;
			sum = sum+x;
			System.out.println("-"+ (i*p*100)+"%==" + x);
			if (m < 0) break;
		}
	}

}
